package com.yhg.service.impl;

import com.yhg.dao.UserDao;
import com.yhg.service.UserService;

public class UserServiceImpl implements UserService {

    private UserDao userDao;

    //BeanFactory去调用该方法  从容器中获得userDao设置到此处
    public void setUserDao(UserDao userDao) {
        System.out.println(userDao);

    }
}
